﻿@using Aluetjen.EmailService.Domain.Models.Pipeline
@model IEnumerable<Gateway>

@{
    ViewBag.Title = "Gateways";
}

<h2>Gateways</h2>

<table>
    <tr>
        <th>Gateway</th>
        <th>Enabled</th>
        <th>Ignore Gateway Failures</th>
        <th>Configuration</th>
    </tr>
@foreach (var item in Model)
{
    <tr>
        <td>@item.Name</td>
        <td>@item.DispatchToGateway</td>
        <td>@item.IgnoreFailure</td>
        <td>@item.ConnectionString</td>
    </tr>
}

@if (Model.Count() == 0) {
    <tr>
        <td colspan="4">No gateways have been configured.</td>
    </tr>
}

</table>